﻿using System;
using System.Collections.Generic;
using System.Web;

namespace YmtAuth.Common.Utility
{
    public class HttpHelper
    {
        public static void AddHeader(string name, string value)
        {
            if (HttpContext.Current == null)return;
            HttpContext.Current.Request.Headers.Add(name, value);
        }

        public static string GetHeaderParameter(string name)
        {
            if (HttpContext.Current == null) return name;
            return HttpContext.Current.Request.Headers.Get(name);
        }
    }
}
